package org.shopen.puremvc.view.components.testing
{
	public class TestBoxFactory
	{
		public static function createTestBox(type : String) : TestBox
		{
			var result : TestBox = null;
			switch(type)
			{
				case CheckTestBox.NAME:
					result = new CheckTestBox();
					break;
				case ChoiceTestBox.NAME:
					result = new ChoiceTestBox();
					break;
				case InputTestBox.NAME:
					result = new InputTestBox();
					break;
				default:
					result = new TestBox();
					break;
			}
			
			return result;
		}
		
	}
}